<?php
/**
 * @file
 * itd_authentication.ldap_servers.inc
 */

/**
 * Implements hook_default_ldap_servers().
 */
function itd_authentication_default_ldap_servers() {
  $export = array();

  $ldap_servers_conf = new stdClass;
  $ldap_servers_conf->disabled = FALSE; /* Edit this to true to make a default ldap_servers_conf disabled initially */
  $ldap_servers_conf->api_version = 1;
  $ldap_servers_conf->sid = 'nd_gov';
  $ldap_servers_conf->name = 'ND.GOV AD';
  $ldap_servers_conf->status = TRUE;
  $ldap_servers_conf->ldap_type = 'ad';
  $ldap_servers_conf->address = 'nd.gov';
  $ldap_servers_conf->port = 389;
  $ldap_servers_conf->tls = FALSE;
  $ldap_servers_conf->bind_method = TRUE;
  $ldap_servers_conf->binddn = 'cn=!itdappsbrowse,ou=users,ou=itd,dc=nd,dc=gov';
  $ldap_servers_conf->bindpw = 'LDapuse4';
  $ldap_servers_conf->basedn = array(
    0 => 'DC=nd,DC=gov',
  );
  $ldap_servers_conf->user_attr = 'sAMAccountName';
  $ldap_servers_conf->mail_attr = 'mail';
  $ldap_servers_conf->mail_template = '';
  $ldap_servers_conf->allow_conflicting_drupal_accts = FALSE;
  $ldap_servers_conf->unique_persistent_attr = '';
  $ldap_servers_conf->user_dn_expression = '';
  $ldap_servers_conf->ldap_to_drupal_user = '';
  $ldap_servers_conf->testing_drupal_username = '';
  $ldap_servers_conf->weight = 0;
  $export['nd_gov'] = $ldap_servers_conf;

  return $export;
}
